package com.chang.spring6.iocXML.DI;

import lombok.Data;

@Data
public class Book {
    private String bName;
    // private Author author;

    private String others;

    public Book() {
        System.out.println("无参构造执行了>>>");
    }

    public Book(String bName, Author author, String others) {
        this.bName = bName;
        //this.author = author;
        this.others = others;
    }

    public static void main(String[] args) {
        Book book = new Book();
        book.setBName("java");
        //book.setAuthor(new Author());


    }
}
